<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>

<html>
	<head>
		<LINK href="<%=request.getContextPath()%>/css/cssCn.css"
			type="text/css" rel="stylesheet">
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<%@ include file="/comm.jsp"%>
		<script type="text/javascript">
		function getSub(actionUrl){
			window.frames["mainFrame"].location.href="<%=request.getContextPath()%>/seal/"+actionUrl;
		}
		
		function showItem(flag){
			if(flag=='1'){
				$("#menu_1").click(function() {
					$d("div_front").style.display="block";
					$d("div_back").style.display="none";
				});
			}else{
				$("#menu_2").click(function() {
					$d("div_front").style.display="none";
					$d("div_back").style.display="block";
				});
			}
		}
	</script>

<style type="text/css">
<!--
legend {
	color: #06c;
	font-weight: 600;
}

.menubar {
	width: 100px;
	cursor: hand;
}
-->
</style>
	</head>
	<body>
		<form>
			<table border="0" cellpadding="0" cellspacing="0" width="100%"
				height="100%">
				<tr>
					<td valign="top" width="150px;">
						<s:if test='#request.userType=="1"'>
							<table border="0" cellpadding="0" cellspacing="1"
								class="tb_input">
								<tr class="list_tr_item">
									<td id="menu_1" class="td_title menubar"
										onclick="showItem('1');">
										前台
									</td>
									<td id="menu_2" class="td_title menubar"
										onclick="showItem('2');">
										后台
									</td>
								</tr>
							</table>
						</s:if>

						<div id="div_front" style="display: block">
							<table width="100%" class="tb_datalist" border="0">
								<s:iterator value="#request.menuItems" id="ca">
									<s:if test='""==#ca.actionUrl'>
										<tr class="tr_title">
											<td nowrap="nowrap">
												<div>
													<span> <strong> <s:property
																value="#ca.title" /> </strong> </span>
												</div>
											</td>
										</tr>
									</s:if>
									<s:else>
										<tr class="tr_title">
											<td nowrap="nowrap">
												<div>
													<a href="#"
														onclick="getSub('<s:property value="#ca.actionUrl" />')">
														<s:property value="#ca.title" /> </a>
												</div>
											</td>
										</tr>
									</s:else>
								</s:iterator>
							</table>
						</div>

						<s:if test='#request.userType=="1"'>
							<div id="div_back" style="display: none">
								<table width="100%" class="tb_datalist" border="0">
									<s:iterator value="#request.menuItems2" id="ca">
										<s:if test='""==#ca.actionUrl'>
											<tr class="tr_title">
												<td nowrap="nowrap">
													<div>
														<span> <strong> <s:property
																	value="#ca.title" /> </strong> </span>
													</div>
												</td>
											</tr>
										</s:if>
										<s:else>
											<tr class="tr_title">
												<td nowrap="nowrap">
													<div>
														<a href="#"
															onclick="getSub('<s:property value="#ca.actionUrl" />')">
															<s:property value="#ca.title" /> </a>
													</div>
												</td>
											</tr>
										</s:else>
									</s:iterator>
								</table>
							</div>
						</s:if>
					</td>

					<td>
						<DIV align=center STYLE="margin-left: 5px">
							<IFRAME id="mainFrame" name="mainFrame" height="100%"
								width="100%" frameborder="no" scrolling="yes" border="0"
								marginwidth="20px" marginheight="0" scrolling="auto"
								allowtransparency="true"
								src="<%=request.getContextPath()%>/seal/index"
								>
							</IFRAME>
							<input type="hidden" name="modulenum" id="modulenum" value="102">
						</DIV>
					</td>
				</tr>
			</table>
		</form>
	</body>
</html>